/**
 * CHMsgProgress.h
 * @author Nick Kreeger <nick.kreeger@park.edu>
 */

#ifndef __CHMsgProgress_h_
#define __CHMsgProgress_h_

#import "nsIMsgProgress.h"
#import "nsIPrompt.h"
#import "CompositionWindowController.h"

//XXX this needs to be registered in appcompnents....
class CHMsgProgress : public nsIMsgProgress, public nsIPrompt // remove prompt support?
{
public:
  CHMsgProgress();
  virtual ~CHMsgProgress();
  
  void SetProgressDelegate(id<MessageSendListener> aProgressDelegate);
  
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGPROGRESS
  NS_DECL_NSIPROMPT
  NS_DECL_NSIWEBPROGRESSLISTENER
    
private:
  id<MessageSendListener> mProgressDelgate;
  BOOL mShouldCloseDialog;  // hack workaround.
};

#endif
